package com.ruoyi.liborder.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.sql.Date;

public class LibOrderRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 预约ID
     */
    private String recordId;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 设备ID
     */
    @Excel(name = "设备ID")
    private Long deviceId;

    /**
     * 预约开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /**
     * 预约结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 有效性
     */
    @Excel(name = "有效性")
    private String effection;

    /**
     * 签到
     */
    @Excel(name = "签到")
    private String signIn;

    /**
     * 违约情况
     */
    @Excel(name = "违约情况")
    private String libDefault;

    public String getRecordId() {
        return recordId;
    }

    public void setRecordId(String recordId) {
        this.recordId = recordId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getEffection() {
        return effection;
    }

    public void setEffection(String effection) {
        this.effection = effection;
    }

    public String getSignIn() {
        return signIn;
    }

    public void setSignIn(String signIn) {
        this.signIn = signIn;
    }

    public String getLibDefault() {
        return libDefault;
    }

    public void setLibDefault(String libDefault) {
        this.libDefault = libDefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("recordId", getRecordId())
                .append("userId", getUserId())
                .append("deviceId", getDeviceId())
                .append("beginTime", getBeginTime())
                .append("endTime", getEndTime())
                .append("effection", getEffection())
                .append("signIn", getSignIn())
                .append("libDefault", getLibDefault())
                .toString();
    }
}